import { defHttp } from '/@/utils/http/axios';
enum Api {
  getRunningProcess='/actProcessIns/getRunningProcess',
        deleteProcessIns='/actProcessIns/delInsByIds/',
        updateInsStatus='/actProcessIns/updateInsStatus',
}


export const list = (params) => defHttp.get({ url: Api.getRunningProcess, params });

export const deleteProcessIns = (params, handleSuccess) => {
  return defHttp.post({ url: Api.deleteProcessIns+params.ids,
    data:params,
    headers:{'Content-Type':'application/x-www-form-urlencoded'}
  }).then(() => {
    handleSuccess();
  });
}
export const updateInsStatus = (params,handleSuccess) =>{ 
  defHttp.post({ url: Api.updateInsStatus,
    data: params,
    headers:{'Content-Type':'application/x-www-form-urlencoded'}
  }).then(() => {
    handleSuccess();
  });
};